package com.capsulode.excel.header;

import java.util.TreeMap;

/**
 * A simple Header expect row type to `TreeMap<Integer,Object>` which key represents column and value represents cell value.
 * <p>The cell type is one of {@link Double double},{@link String},{@link Boolean boolean} </p>
 */
public class SimpleHeader extends AbstractHeader<TreeMap<Integer, Object>, Object>{

    public SimpleHeader(String name) {
        super(name);
    }

    @Override
    protected void read(Object o, TreeMap<Integer, Object> row) {
        row.put(getIndex(), o);
    }
}
